//
// Created by zx208 on 2024/10/27.
//

#include "../../define.h"
#include <stdio.h>
#include <stdlib.h>

#ifndef _SequenceStack_H
#define _SequenceStack_H

typedef int ElemType;

#define MAXSTACK 100

// 顺序栈
typedef struct SqStack{
    ElemType *base;
    ElemType *top;
    int stacksize;
} SqStack;

Status InitStack(SqStack *S);
Status Push_SS(SqStack *S, ElemType e);
Status Pop_SS(SqStack *S, ElemType *e);
Status IsEmpty_SS(SqStack *S);
Status IsFull_SS(SqStack *S);
ElemType GetTop_SS(SqStack *S);
int StackLength_SS(SqStack S);

#endif //_SequenceStack_H
